package org.lzuploader.model.message;

/** This class is used to easily transmit some infos from one class to another.
 * 
 * @author Emmanuel Cron
 *
 */
public class InfoMessage extends AbstractMessage
{
    /** Creates a new info message.
     * 
     * @param title Title of the info
     * @param contents Contents of the info
     */
    public InfoMessage(final String title, final String contents)
    {
        super(title, contents);
    }
    
    /** Returns that this message is nto an error.
     * @return Always <code>false</code>
     */
    @Override
    public boolean isError()
    {
        return false;
    }

    /** Returns that this message is informational.
     * @return Always <code>true</code>
     */
    @Override
    public boolean isInfo()
    {
        return true;
    }
}
